home *** CD-ROM | disk | FTP | other *** search
- Path: braddon.its.utas.edu.au!usenet
- From: Pavel Sakov <Pavel.Sakov@appcomp.utas.edu.au>
- Newsgroups: comp.lang.modula2
- Subject: Re: Executing Files From Modula 2
- Date: Thu, 18 Apr 1996 19:33:50 -0900
- Organization: University of Tasmania
- Message-ID: <317717AE.6F70@appcomp.utas.edu.au>
- References: <MXNuGB.BOXC@csh-newsserver.csh.rit.edu>
- NNTP-Posting-Host: pc153.appcomp.utas.edu.au
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 2.0 (Win16; I)
-
- Andy Blake wrote:
- >
- > I am wondering if there is any simple way in which I can run executable
- > files (such as an MS-DOS command) from Modula 2. All of the ways that
-
- With TopSpeed 1.17 you write:
-
- Storage.ALLOCATE( address, MAX( CARDINAL));
- error_code := Lib.Execute( program, command_line, address,12000);
- IF error_code # 0 THEN
- ... (* error, DOS error code = error_code *)
- END
- Storage.DEALLOCATE( address, MAX( CARDINAL));
-
- Thats all.
- Pavel Sakov
-